#ifndef __BSP_UART_H__
#define __BSP_UART_H__

#include "main.h"
#include "text.h"

#define BUFFER_SIZE 64  // 环形缓冲区长度

typedef union
{
	uint16_t buffer[12];
    uint8_t byte[24];
}Data_ProgressTypeDef;

typedef struct 
{
    uint8_t data[BUFFER_SIZE];
}CircularBuffer;

extern CircularBuffer rx_buffer;
extern Data_ProgressTypeDef Data_Pro;
extern uint8_t data[26];

uint8_t Bool_Rx(uint8_t* data);
void Rx_Progress(uint8_t* data,gimbal_TypeDef* Gimbal,Data_ProgressTypeDef* Data_Pro,uint8_t point);
#endif
